package com.eig.order.controller;

import com.aaa.entity.EduTeacher;
import com.eig.common.vo.Result;
import com.eig.order.service.TOrderTeacherService;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @author ：liu666
 * @date ：
 * @description：
 * @modified By：
 * @version:
 */
@RestController
@RequestMapping("/order/teacher")
public class TOrderTeacherController {
    @Resource
    TOrderTeacherService tOrderTeacherService;


    @PostMapping("/queryAllTeacherBYTeacherName/{teacherName}")
    public Result<EduTeacher> queryAllTeacherBYTeacherName(@PathVariable(required = true) String teacherName){
        return new Result<EduTeacher>(2000,"查询成功",tOrderTeacherService.getTeacher(teacherName));
    }
}
